<?php
namespace App\Helpers;

class ArrayHelper
{
    public static function arrays_are_same(array $array1, array $array2): bool {
        if (count($array1) !== count($array2)) {
            return false;
        }
        $copy1 = $array1;
        $copy2 = $array2;
        sort($copy1);
        sort($copy2);
        return $copy1 === $copy2;
    }
}
